home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / Waste TCL r2 / WASTEEdit ƒ / WASTEEditHeader.cpp < prev   
Encoding:
C/C++ Source or Header  |  1994-11-30  |  5.3 KB  |  201 lines  |  [TEXT/KAHL]

  1. /*
  2.  *    TCL #includes.cpp -  Source for Standard TCL Precompiled Headers,
  3.  *        "TCLHeaders"
  4.  *
  5.  *  Copyright (c) 1993, 1994 Symantec Corporation.  All rights reserved.
  6.  */
  7.  
  8. #if !__cplusplus
  9. Error: This header file is for C++ only
  10. #endif
  11.  
  12. #define CPP_TCL                        // for C++ only TCL (obsolete)
  13. #define __TCL__                        // compiling for use in TCL
  14. #define TCL_USE_BEL                    // define to use Bedrock Exception Library
  15.  
  16.  
  17. //    Debugging flags
  18. //    To build final app, comment out one or more of these
  19.  
  20. //#define TCL_DEBUG                    // include debugging code, TCL_ASSERT, etc.
  21. //#define BR_DEBUG                    // if debugging BEL
  22. //#define TCL_BREAK_CATCH                // enter debugger on catch_all_()
  23. //#define TCL_BREAK_FAILURE            // enter debugger on Failure()
  24. //#define TCL_BREAK_ASSERT            // enter debugger on TCL_ASSERT fail
  25.  
  26. #if defined(TCL_DEBUG) || defined(BR_DEBUG)
  27. #define __TCL_DEBUG__ 1                // include debugging code, ASSERT, etc.
  28. #endif
  29.  
  30. //    If you do not want to use the THINK inspector, uncomment
  31. //    the following:
  32.  
  33. #define TCL_NO_INSPECTOR
  34.  
  35. //    If each TCL file is to #include a precompiled header
  36. //    (instead of using one precompiled header for entire project)
  37. //    define the following: (Not supported in current release)
  38.  
  39. //#define TCL_PCH // when defined, the TCL manually includes TCLHeaders
  40.  
  41. //    If unsafe allocations, e.g., new CBitMap instead of
  42. //    TCL_NEW(CBitMap, ()) of TCL_AUTODESTRUCT_OBJECT class objects
  43. //    is allowed, e.g., while converting applications, uncomment:
  44.  
  45. #define TCL_UNSAFE_ALLOCATION
  46.  
  47. //    Once an application has been completely converted to
  48. //    TCL_NEW(), TCL_UNSAFE_ALLOCATION should be commented out.
  49. //    If you change TCL_UNSAFE_ALLOCATION in this file, you
  50. //    must also change it in the BRLib prefix!
  51.  
  52. //    If old-style Dispose() functions are to be supported by TCL,
  53. //    define the following:
  54.  
  55. //#define TCL_USE_DISPOSE
  56.  
  57. //    If the above is not defined (preferred setting) the TCL does not
  58. //    define any Dispose() functions; all object cleanup is done using
  59. //    destructors and operator delete.
  60.  
  61. //    If the ability to read and write the standard TCL classes is
  62. //    not desired, comment out the following to save some memory.
  63. //    This flag does not have to be defined in the precompiled header.
  64. //    Putting it in the compiler prefix instead allows you to use one
  65. //    version of TCLHeaders for all projects.
  66.  
  67. //#define TCL_OBJECT_IO
  68.  
  69. //    To preset objects allocated by operator new to a particular
  70. //    value, define TCL_PRESET_OBJECTS to a value in the range 0-255.
  71. //     A value of 0 is compatible with previous releases; other values,
  72. //    e.g., 0xFE can be useful for debugging. TCL_PRESET_OBJECTS is
  73. //    not used in the header files; putting it in the compiler prefix
  74. //    instead allows you to use one version of TCLHeaders for all
  75. //    projects.
  76.  
  77. #define TCL_PRESET_OBJECTS 0
  78.  
  79. // Set for BEL
  80. #define BR_BUILD_MAC
  81. #define BR_qUsePlatformAlloc
  82. //#define _MAC
  83.  
  84. #ifdef __TCL_DEBUG__
  85. #endif
  86.  
  87. //    Compile with extern templates, which means that all templates
  88. //    must be specifically expanded with #pragma template
  89.  
  90. //#pragma template_access extern
  91.  
  92. //    Standard headers
  93.  
  94. #include "Mac #includes.cpp"
  95.  
  96. //    Detect universal headers and set flag
  97.  
  98. #if defined(__CONDITIONALMACROS__)
  99. #define TCL_UNIVERSAL_HEADERS
  100.  
  101. #if defined(powerc) || defined(__powerc)
  102. #define TCL_POWER_PC
  103. #define TCL_NO_INSPECTOR
  104. #endif
  105.  
  106. #define Length(s)    (*(unsigned char *)(s))
  107. #define GetIndPat(patptr, id, index) GetIndPattern(patptr, id, index)
  108. #else // not universal headers
  109. #define GetIndPat(patptr, id, index) GetIndPattern(*(patptr), id, index)
  110. #define LMGetMBarHeight() (* (short *) 0x0BAA)
  111. #endif
  112.  
  113. //    The PPC compiler has an option to switch '\r' and '\n'
  114. //    Define a TCL_CR value that is insensitive to this option
  115. //    and is compatible with previous release of Object I/O
  116.  
  117. #define TCL_CR 0xD
  118.  
  119. #if 1
  120.  
  121. //    Commonly used non-OOP TCL headers
  122.  
  123.  
  124. #include "TCL.h"
  125. #include "Global.h"
  126. #include "Constants.h"
  127. #include "Commands.h"
  128. #include "OSChecks.h"
  129. #include "TCLUtilities.h"
  130. #include "TBUtilities.h"
  131. #include "LongCoordinates.h"
  132. #include "TCLpstring.h"
  133.  
  134. #endif
  135.  
  136. #if 1                // 0 while debugging TCL
  137.  
  138. //    Commonly used TCL classes
  139. //    - these headers are in #include dependency order
  140.  
  141. #include "CStream.h"
  142. #include "CCountingStream.h"
  143. #include "CBufferedStream.h"
  144. #include "CFileStream.h"
  145. #include "CHandleStream.h"
  146.  
  147. #include "CCollaborator.h"
  148. #include "CCollection.h"
  149. #include "CArray.h"
  150. #include "CBureaucrat.h"
  151. #include "CDirectorOwner.h"
  152. #include "CAppleEventObject.h"
  153. #include "CProperty.h"
  154. #include "CWatchDesc.h"
  155. #include "CApplication.h"
  156. #include "CDirector.h"
  157. #include "CError.h"
  158. #include "CView.h"
  159. #include "CPane.h"
  160. #include "CDesktop.h"
  161. #include "CBartender.h"
  162. #include "CClipboard.h"
  163. #include "CChore.h"
  164. #include "CSwitchboard.h"
  165. #include "CWindow.h"
  166. #include "CTask.h"
  167. #include "CPanorama.h"
  168. #include "CScrollPane.h"
  169. #include "CAppleEvent.h"
  170. #include "CDecorator.h"
  171. #include "CDocument.h"
  172. #include "CPaneBorder.h"
  173.  
  174. #include "CArrowPopupPane.h"
  175. #include "CButton.h"
  176. #include "CCheckBox.h"
  177. #include "CIconPane.h"
  178. #include "CPopupMenu.h"
  179. #include "CPopupPane.h"
  180. #include "CRadioControl.h"
  181. #include "CRadioGroupPane.h"
  182. #include "CStdPopupPane.h"
  183. #include "CDialog.h"
  184. #include "CDialogDirector.h"
  185. #include "CDialogText.h"
  186. #include "CDLOGDialog.h"
  187. #include "CDLOGDirector.h"
  188. #include "CIntegerText.h"
  189. #include "CDataFile.h"
  190. #include "CArrayPane.h"
  191. #include "CTable.h"
  192. #include "CTableDragger.h"
  193. #include "CAbstractText.h"
  194. #include "CEditText.h"
  195. #include "CTextEditTask.h"
  196. #include "CTextStyleTask.h"
  197. #include "CString.h"
  198.  
  199.  
  200. #endif
  201.